<script>
    setTimeout(() => {
        console.log(111);
    });

    new Promise((resolve, reject) => {
        resolve();
        //return ;throw
        reject();
        console.log(222);
    }).then(v => {
        console.log(333);
    })

    console.log(444);
</script>